<?php
class Web_LoginController extends Controller {

    /**
     * Notes: 登录页
     * User: ZHL
     * Date: 2020/4/29
     */
    function index() {
        $this->display('web_pc/login');
    }

    /**
     * Notes: 会员登录
     * User: ZHL
     * Date: 2020/5/1
     */
    function dologin(){
        $userName = Fun::input('user_name');
        $userPwd = Fun::input('user_pwd');
        $verifyCode = Fun::input('verifycode');
        $LoginSer = new Web_LoginServe();
        $result = $LoginSer->goUserLogin($userName, $userPwd, $verifyCode);
        Fun::json($result, true);
    }

    /**
     * Notes: 退出
     * User: ZHL
     * Date: 2020/4/29
     */
    function out(){
        SYS_SESSIONS_DEL('member_info');
        SYS_REDIRECT('login');
    }
}